package com.hspedu.enum_;

/**
 * @author 谷其昊
 * @version 1.0
 * @date 2022/1/29
 * @time 14:34
 */
public class Enumeration01 {
    public static void main(String[] args) {
        Season1 season1 = new Season1("春天", "温暖");
        Season1 season2 = new Season1("夏天", "炎热");
        Season1 season3 = new Season1("秋天", "凉爽");
        Season1 season4 = new Season1("冬天", "寒冷");

        Season1 season = new Season1("白天", "亮");
        season1.setName("黑天");

    }
}

class Season1{
    private String name;
    private String desc;//描述

    public Season1(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}

